<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Http\Controllers\main\MainController as main;
use DB;

class GoodsDatalistController extends Controller
{
    public function getDatalist()
    {
        // dd(main::getDatalist('24'));
        // dd(main::Goodsson(23));
        // 商品id
        $id = $_GET['id'];
        return view('home.goods.goodsDatalist',['goods'=>main::getDatalist($id),'son'=>main::Goodsson($id)]);
    }
}
